package com.yt.system.domain;

public class Resource {
    private Integer rid;

    private String principal;

    private Integer type;

    private String data;

    private Integer flag;

    private Integer status;

    public Resource(Integer rid, String principal, Integer type, String data, Integer flag, Integer status) {
        this.rid = rid;
        this.principal = principal;
        this.type = type;
        this.data = data;
        this.flag = flag;
        this.status = status;
    }

    public Resource() {
        super();
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal == null ? null : principal.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data == null ? null : data.trim();
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Resource{" +
                "rid=" + rid +
                ", principal='" + principal + '\'' +
                ", type=" + type +
                ", data='" + data + '\'' +
                ", flag=" + flag +
                ", status=" + status +
                '}';
    }
}